﻿@model Leo.Entities.Cliente

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<div>
    @if (ViewData["message"] != "")
    {
        <h3>
            <span class="field-validation-error">
                @ViewData["message"]
            </span>
        </h3>
    }
@using (Html.BeginForm()) {
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Cliente</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.RucDni)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.RucDni)
            @Html.ValidationMessageFor(model => model.RucDni)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.NomRazonSocial)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.NomRazonSocial)
            @Html.ValidationMessageFor(model => model.NomRazonSocial)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Direccion)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Direccion)
            @Html.ValidationMessageFor(model => model.Direccion)
        </div>

        <p>
            <input type="submit" value="Create" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
